package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QueryObject {
    //当前页
    private int page;
    //每页的数据条数
    private int rows;
    private String sort;
    private String order;
    private String keyword;

    public int getStartIndex(){
        return (page - 1) * rows;
    }
}
